package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> findAll();

    PageResult findPage(QueryPageBean queryPageBean);

    Integer[] findPermissionids(Integer id);

    Role findByid(Integer id);

    void add(Role role, Integer[] menuids, Integer[] permissionids);

    Integer[] findMenuids(Integer id);

    void deleteByid(Integer id);

    void update(Role role, Integer[] menuids, Integer[] permissionids);
}
